/*
 * @Author: your name
 * @Date: 2021-12-01 03:43:58
 * @LastEditTime: 2021-12-01 11:35:47
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \esp8266-oled7240-arduino\include\GUI.h
 */

#ifndef __GUI_H
#define __GUI_H
#include "oled.h"

#define GUI_WIDTH   OLED_Width
#define GUI_HIGH    OLED_High

#define 	SCREEN_PAGE_NUM			   	(5)
#define   SCREEN_PAGEDATA_NUM   	(72)
#define 	SCREEN_COLUMN 					(72)
#define  	SCREEN_ROW 							(40)

#ifndef MIN
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#endif
#ifndef MAX
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#endif

void GUI_Init();
void GUI_LineGif(void);
void GUI_RegGif(void);
void DrawLine(int x1,int y1,int x2,int y2);
void DrawFillCircle( int usX_Center, int usY_Center, int r);

void LineTo(uint8_t x,uint8_t y);

unsigned char pgm_read_byte(const unsigned char * addr);
void DrawSlowBitmap(int x, int y, const unsigned char *bitmap, unsigned char w, unsigned char h);






#endif


